import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ConditionMonitoringComponent } from "./condition-monitoring.component";


const routes: Routes = [{
  path: '',
  component: ConditionMonitoringComponent,
  children: [
    {path: '', redirectTo: 'group-overview',pathMatch: 'full'},
    {path: 'group-overview', loadChildren: 'app/pages/condition-monitoring/children/group-overview/group-overview.module#GroupOverviewModule'},
    {path: 'station-overview/:id', loadChildren: 'app/pages/condition-monitoring/children/station-overview/station-overview.module#StationOverviewModule'},
    {path: 'diagram-overview/:id', loadChildren: 'app/pages/condition-monitoring/children/diagram-overview/diagram-overview.module#DiagramOverviewModule'},
    {path: 'forecast-overview/:id', loadChildren: 'app/pages/condition-monitoring/children/forecast-overview/forecast-overview.module#ForecastOverviewModule'},
    {path: 'example', loadChildren: 'app/pages/condition-monitoring/children/example/example.module#ExampleModule'}
  ]
}];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})

export class ConditionMonitoringRoutingModule { }
